home *** CD-ROM | disk | FTP | other *** search
- ' SMLMESS Example Script
- '
- ' This script is created to illustrate the use of scripts for the
- ' SmlMess Program.
- '
- ' Smlmess upon execution will default to the Messagebase configured
- ' as #1. Normally, this will be the Main Message Base. If you have
- ' it configured differently then you will need to use Command 1 to
- ' make whatever Messagebase you want to do Maintenance default.
- '
- ' Script Keys are needed (and accepted) everywhere except at Pause
- ' prompts (Press any key to Continue) and Command #8 (Configure).
- '
- ' This file can be called by SMLMESS AUTO or by SMLMESS SMLMESS.SCR .
- ' Other Script file (.SCR) can be called by SMLMESS filename.SCR .
- '
- ' This method of scripting can be called 'Input key' script. For
- ' instead of this program reading the keystrokes from you Keyboard
- ' it will read it from the Script File.
- '
- '
- ' This file is a sample script that can be used for Monthly
- ' Message Maintenance.
- ' It will erased all Public Messages that are more then 2 months old.
- ' and then Pack the Main MESSAGES base.
- '
- '
- ' Okay, on with the show...
- '
- ' Upon execution of the program, it will automatically use #1's conference
- ' as default. Other conferences can easily be accessed via Command #1 using
- ' scripts.
- ' For keystrokes, after the text that you want to be fed into Smlmess, you
- ' do not need to put CR symbol. Smlmess will automatically put one in.
- ' But, if you do want have any text, (like if you want it to simulate
- ' you pressing ENTER to select default), then you need to use the
- ' } symbol.
- '
- ' Everything after the ' is ignored. Trailing and Leading Blanks are
- ' ignored as well.
- '
- ' The program is in the Main Menu. So, first you want to
- 3 ' which selects the Delete Messages Command
- N ' which enters N at the 'Delete Bulletin Messages ' stuff
- Y ' which enters Y at the 'Delete Public Messages only stuff
- ' this line is totally ignored by smlmess, and it does not interrupt
- ' commands. Okay, lets say todays date was 03/01/88, so 1 month ago
- 02/01/88 ' is 1 month ago. so only messages on or before 02/01/88
- ' are used.
- { ' let it default to Nul(Nothing) for the From delete range
- { ' let it default to Nul(Nothing) for the To delete range
- ' Okay, at this time messages should be deleted.
- ' Upon, completion of deleting message, smlmess will return to the main menu
- '
- ' okay, now to pack the message base
- ' first select
- 4 ' to select Pack the message base
- Y ' to Say YES, you are sure you want to Pack the message Base.
- N ' to say, No, so to Not renumber the messages.
- ' okay, then it will be packed.
- ' now, what do you want to do ?
- ' if there are other message bases to be packed, then you need to
- ' put in the appropiate commands to (like Command#1) to choose another
- ' conference, and then repeat the above steps. (But, of course without
- ' all these comment lines because you got this down pat, right ??)
- '
- 9 ' to exit the program
-
-
-